package com.hsmpay.mobile.service.message;

import com.hsmpay.common.service.BaseService;
import com.hsmpay.mobile.pojo.message.LoginMessage;

import java.io.Serializable;
import java.util.List;

/**
 * 登录消息接口 loginMassageService
 * 对应数据层 loginMassageDao
 *
 * @param <Entity>
 * @param <Query>
 * @author 颜铃璋
 * @date 2013-9-29
 */
public interface LoginMessageService<Entity extends Serializable, Query extends Object> extends BaseService<Entity, Query> {
    /**
     * 根据终端ID 获取公共消息
     *
     * @param terminalId
     * @param roleId
     * @return
     * @throws Exception
     */
    public List<LoginMessage> searchLoginSystemMsg(Long terminalId, Long roleId) throws Exception;

    /**
     * 根据终端ID 获取个人消息
     *
     * @param terminalId
     * @param roleId
     * @param userId
     * @return
     * @throws Exception
     */
    public List<LoginMessage> searchLoginPersonalMsg(Long terminalId, Long roleId, Long userId) throws Exception;
}
